﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Web.Script.Services;
using EntitiesLayer.Entities;
using BusinnesLayer.LogicBusiness;
using System.Data;

namespace ClinicaSanPablo
{
    public partial class BusquedaSeguimientoSNC : System.Web.UI.Page
    {
        private static Combosbl ptb = new Combosbl();

        private static System.Web.Script.Serialization.JavaScriptSerializer jsonSerializer = new System.Web.Script.Serialization.JavaScriptSerializer();
        
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public static string ComboArea()
        {
            List<Combos> getArea = ptb.GetAllComboArea();
            return jsonSerializer.Serialize(getArea);
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}